package com.findFish.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.findFish.system.mapper.RobotFishSensorsMapper;
import com.findFish.system.domain.RobotFishSensors;
import com.findFish.system.service.IRobotFishSensorsService;

/**
 * 机器鱼传感器数据Service业务层处理
 * 
 * @author admin
 * @date 2025-03-31
 */
@Service
public class RobotFishSensorsServiceImpl implements IRobotFishSensorsService 
{
    @Autowired
    private RobotFishSensorsMapper robotFishSensorsMapper;

    /**
     * 查询机器鱼传感器数据
     * 
     * @param id 机器鱼传感器数据主键
     * @return 机器鱼传感器数据
     */
    @Override
    public RobotFishSensors selectRobotFishSensorsById(Long id)
    {
        return robotFishSensorsMapper.selectRobotFishSensorsById(id);
    }

    /**
     * 查询机器鱼传感器数据列表
     * 
     * @param robotFishSensors 机器鱼传感器数据
     * @return 机器鱼传感器数据
     */
    @Override
    public List<RobotFishSensors> selectRobotFishSensorsList(RobotFishSensors robotFishSensors)
    {
        return robotFishSensorsMapper.selectRobotFishSensorsList(robotFishSensors);
    }

    /**
     * 新增机器鱼传感器数据
     * 
     * @param robotFishSensors 机器鱼传感器数据
     * @return 结果
     */
    @Override
    public int insertRobotFishSensors(RobotFishSensors robotFishSensors)
    {
        return robotFishSensorsMapper.insertRobotFishSensors(robotFishSensors);
    }

    /**
     * 修改机器鱼传感器数据
     * 
     * @param robotFishSensors 机器鱼传感器数据
     * @return 结果
     */
    @Override
    public int updateRobotFishSensors(RobotFishSensors robotFishSensors)
    {
        return robotFishSensorsMapper.updateRobotFishSensors(robotFishSensors);
    }

    /**
     * 批量删除机器鱼传感器数据
     * 
     * @param ids 需要删除的机器鱼传感器数据主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishSensorsByIds(Long[] ids)
    {
        return robotFishSensorsMapper.deleteRobotFishSensorsByIds(ids);
    }

    /**
     * 删除机器鱼传感器数据信息
     * 
     * @param id 机器鱼传感器数据主键
     * @return 结果
     */
    @Override
    public int deleteRobotFishSensorsById(Long id)
    {
        return robotFishSensorsMapper.deleteRobotFishSensorsById(id);
    }
}
